package com.ruoyi.wms.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 自定义模板对象 wms_custom
 *
 * @author ruoyi
 * @date 2022-04-15
 */
public class WmsCustom extends BaseEntity {
  private static final long serialVersionUID = 1L;

  /** */
  private Long id;

  /** 模板名称 */
  @Excel(name = "模板名称")
  private String name;

  /** 模板类型（1商品 2入库 3出库） */
  @Excel(name = "模板类型", readConverterExp = "1=商品,2=入库,3=出库")
  private String type;

  /** 自定义JSON */
  @Excel(name = "自定义JSON")
  private String context;

  /** 状态（0正常 1停用） */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /** 删除标志（0代表存在 2代表删除） */
  private String delFlag;

  /** 商品信息 */
  private List<WmsGoods> wmsGoodsList;

  public void setId(Long id) {
    this.id = id;
  }

  public Long getId() {
    return id;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getType() {
    return type;
  }

  public void setContext(String context) {
    this.context = context;
  }

  public String getContext() {
    return context;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getStatus() {
    return status;
  }

  public void setDelFlag(String delFlag) {
    this.delFlag = delFlag;
  }

  public String getDelFlag() {
    return delFlag;
  }

  public List<WmsGoods> getWmsGoodsList() {
    return wmsGoodsList;
  }

  public void setWmsGoodsList(List<WmsGoods> wmsGoodsList) {
    this.wmsGoodsList = wmsGoodsList;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("id", getId())
        .append("name", getName())
        .append("type", getType())
        .append("context", getContext())
        .append("status", getStatus())
        .append("delFlag", getDelFlag())
        .append("createBy", getCreateBy())
        .append("createTime", getCreateTime())
        .append("updateBy", getUpdateBy())
        .append("updateTime", getUpdateTime())
        .append("remark", getRemark())
        .append("wmsGoodsList", getWmsGoodsList())
        .toString();
  }
}
